﻿using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace BlogApi.Models
{
    /// <summary>
    /// 粉丝表
    /// </summary>
    public class Fan:BaseEntity
    {
        /// <summary>
        /// 粉丝中的作者ID
        /// </summary>
        [ForeignKey(nameof(Author))]
        public Guid AuthorId { get; set; }
        public User Author { get; set; }
        /// <summary>
        /// 关注这个作者的用户ID
        /// </summary>
        [ForeignKey(nameof(User))]
        public Guid UserId { get; set; }
        public User User { get; set; }
    }
}
